<!DOCTYPE html>   
<!--
==========================================================================
LV自动生成新增页面代码,只生成一次,按需修改.
生成日期：2024-01-02 15:41:17 +0800 CST
生成路径: template/mywork/table/add.html
生成人：lv
==========================================================================
-->
<html lang="zh">
<head>
    {{template "header" (OssUrl)}}
    <link href="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.css" rel="stylesheet"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content   ibox-content">
    <form class="form-horizontal m" id="form-table-add">     
            
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        <input name="username" class="form-control" type="text" required>
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        <input name="password" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        <input name="taskContent" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            <input name="startDate" class="form-control" placeholder="yyyy-MM-dd" type="text" >
                        </div>
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            <input name="endDate" class="form-control" placeholder="yyyy-MM-dd" type="text" >
                        </div>
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        <input name="workDays" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        <input name="autoSubmit" class="form-control" type="text" >
                    </div>
                </div>
               
              
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        {{DictRadio "sys_normal_disable" "status" ""}}
                    </div>
                </div>  
               
            
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        <input name="sort" class="form-control" type="text" >
                    </div>
                </div>
               
            
                <div class="form-group">
                    <label class="col-sm-4 col-md-4 col-lg-4 col-xl-4 control-label control-label">：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            <input name="updateTime" class="form-control" placeholder="yyyy-MM-dd" type="text" >
                        </div>
                    </div>
                </div>
              
    </form>
</div>
{{template "footer" (OssUrl)}}
<script src="{{OssUrl}}/resource/ajax/libs/datapicker/bootstrap-datetimepicker.min.js"></script>

<script type="text/javascript">
    var prefix = ctx + "/mywork/table";
    $("#form-table-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-table-add').serialize());
        }
    }
             
    $("input[name='startDate']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });    
    $("input[name='endDate']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });            
    $("input[name='updateTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });   
    
</script>
</body>
</html>